My Code
Please tell me if I can solve this problem in any other ways
function isOddWithoutModulo(num) {
let result = num;
while(result!==0&&result!==1){
result=Math.floor(result/2);
}
if(result===1){
return true;
}
return false;
}
isOddWithoutModulo(100007)